/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ICobranzas.java
 *
 * Created on 25/10/2012, 09:24:08 AM
 */
package gui;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.table.DefaultTableCellRenderer;
import modelo.ModeloHistorialPago;
import modelo.ModeloTablaVencimientoNeto;
import promesa.util.Constantes;

/**
 *
 * @author Administrador
 */
public class ICobranzas extends javax.swing.JInternalFrame {

    private JFrame contenedor;
    private ModeloTablaVencimientoNeto modeloTablaDiasDemora;
    private ModeloHistorialPago modeloHistorial;

    /** Creates new form ICobranzas */
    public ICobranzas(JFrame contenedor) {
        initComponents();
        this.modeloTablaDiasDemora = new ModeloTablaVencimientoNeto();
        this.modeloHistorial = new ModeloHistorialPago();
        this.contenedor = contenedor;
        tblDiasDemora.setModel(modeloTablaDiasDemora);
        tblDiasDemora.getTableHeader().setReorderingAllowed(false);
        tblHistorialPagos.setModel(modeloHistorial);
        tblHistorialPagos.getTableHeader().setReorderingAllowed(false);
        ((DefaultTableCellRenderer) tblDiasDemora.getTableHeader().getDefaultRenderer()).setHorizontalAlignment(JLabel.CENTER);
        tblDiasDemora.getTableHeader().setFont(Constantes.FUENTE_CABECERA_TABLA);
        ((DefaultTableCellRenderer) tblHistorialPagos.getTableHeader().getDefaultRenderer()).setHorizontalAlignment(JLabel.CENTER);
        tblHistorialPagos.getTableHeader().setFont(Constantes.FUENTE_CABECERA_TABLA);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblTitulo = new javax.swing.JLabel();
        pnlCentral = new javax.swing.JPanel();
        barraHerramientas = new javax.swing.JToolBar();
        btnPISel = new javax.swing.JButton();
        jSeparator4 = new javax.swing.JToolBar.Separator();
        btnCobranza = new javax.swing.JButton();
        jSeparator3 = new javax.swing.JToolBar.Separator();
        btnAnticipo = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JToolBar.Separator();
        btnCancelar = new javax.swing.JButton();
        pnlContenedor = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        lblTituloDatosCredito = new javax.swing.JLabel();
        pnlDatosCredito = new javax.swing.JPanel();
        lblLimiteCredito = new javax.swing.JLabel();
        lblCupoDisponible = new javax.swing.JLabel();
        lblFUD = new javax.swing.JLabel();
        lblNC = new javax.swing.JLabel();
        lblProt = new javax.swing.JLabel();
        txtLimiteCredito = new javax.swing.JTextField();
        txtCupoDisponible = new javax.swing.JTextField();
        txtFUD = new javax.swing.JTextField();
        txtNC = new javax.swing.JTextField();
        txtProt = new javax.swing.JTextField();
        lblClaseRiesgo = new javax.swing.JLabel();
        lblValorVencido = new javax.swing.JLabel();
        txtClaseRiesgo = new javax.swing.JTextField();
        txtValorVencido = new javax.swing.JTextField();
        btnDt1 = new javax.swing.JButton();
        btnDt2 = new javax.swing.JButton();
        btnDt3 = new javax.swing.JButton();
        chkBloqueoCredito = new javax.swing.JCheckBox();
        pnlInformativo = new javax.swing.JPanel();
        pnlContenedorValoresPorVencer = new javax.swing.JPanel();
        lblTituloValoresPorVencer = new javax.swing.JLabel();
        pnlValoresPorVencer = new javax.swing.JPanel();
        pnlEtiquetasMeses = new javax.swing.JPanel();
        lblMes1 = new javax.swing.JLabel();
        lblMes2 = new javax.swing.JLabel();
        lblMes3 = new javax.swing.JLabel();
        lblMes4 = new javax.swing.JLabel();
        lblMes5 = new javax.swing.JLabel();
        lblMes6 = new javax.swing.JLabel();
        pnlCajasTextoMeses = new javax.swing.JPanel();
        txtMes1 = new javax.swing.JTextField();
        txtMes2 = new javax.swing.JTextField();
        txtMes3 = new javax.swing.JTextField();
        txtMes4 = new javax.swing.JTextField();
        txtMes5 = new javax.swing.JTextField();
        txtMes6 = new javax.swing.JTextField();
        pnlContenedorTablas = new javax.swing.JPanel();
        pnlDiasDemora = new javax.swing.JPanel();
        lblTituloDiasDemora = new javax.swing.JLabel();
        pnlTablaDiasDemora = new javax.swing.JPanel();
        scrDiasDemora = new javax.swing.JScrollPane();
        tblDiasDemora = new javax.swing.JTable();
        pnlHistorialPagos = new javax.swing.JPanel();
        lblHistorialPagos = new javax.swing.JLabel();
        pnlTablaHistorialPagos = new javax.swing.JPanel();
        scrHistorialPagos = new javax.swing.JScrollPane();
        tblHistorialPagos = new javax.swing.JTable();

        setClosable(true);
        setIconifiable(true);
        setMaximizable(true);
        setResizable(true);
        setTitle("Hoja Maestra de Créditos:");

        lblTitulo.setBackground(new java.awt.Color(175, 200, 222));
        lblTitulo.setFont(new java.awt.Font("Tahoma", 1, 18));
        lblTitulo.setText("Hoja Maestra de Créditos: ");
        lblTitulo.setOpaque(true);
        getContentPane().add(lblTitulo, java.awt.BorderLayout.PAGE_START);

        pnlCentral.setLayout(new java.awt.BorderLayout());

        barraHerramientas.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        barraHerramientas.setFloatable(false);
        barraHerramientas.setRollover(true);

        btnPISel.setText("PI Sel.");
        btnPISel.setFocusable(false);
        btnPISel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnPISel.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnPISel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPISelActionPerformed(evt);
            }
        });
        barraHerramientas.add(btnPISel);
        barraHerramientas.add(jSeparator4);

        btnCobranza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/icon_money.png"))); // NOI18N
        btnCobranza.setText("Cobranza");
        btnCobranza.setFocusable(false);
        btnCobranza.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        btnCobranza.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCobranzaActionPerformed(evt);
            }
        });
        barraHerramientas.add(btnCobranza);
        barraHerramientas.add(jSeparator3);

        btnAnticipo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/gnome_finance.png"))); // NOI18N
        btnAnticipo.setText("Anticipo");
        btnAnticipo.setFocusable(false);
        btnAnticipo.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        btnAnticipo.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        btnAnticipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAnticipoActionPerformed(evt);
            }
        });
        barraHerramientas.add(btnAnticipo);
        barraHerramientas.add(jSeparator2);

        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/eliminar_24.gif"))); // NOI18N
        btnCancelar.setText("Cancelar");
        btnCancelar.setFocusable(false);
        btnCancelar.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        btnCancelar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });
        barraHerramientas.add(btnCancelar);

        pnlCentral.add(barraHerramientas, java.awt.BorderLayout.PAGE_START);

        jPanel2.setLayout(new java.awt.BorderLayout());

        lblTituloDatosCredito.setBackground(new java.awt.Color(175, 200, 222));
        lblTituloDatosCredito.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblTituloDatosCredito.setText("Datos de Crédito");
        lblTituloDatosCredito.setBorder(javax.swing.BorderFactory.createEmptyBorder(3, 3, 3, 1));
        lblTituloDatosCredito.setOpaque(true);
        jPanel2.add(lblTituloDatosCredito, java.awt.BorderLayout.PAGE_START);

        pnlDatosCredito.setBackground(new java.awt.Color(255, 255, 255));

        lblLimiteCredito.setText("Límite de crédito:");

        lblCupoDisponible.setText("Cupo disponible:");

        lblFUD.setText("FUDs:");

        lblNC.setText("N/C:");

        lblProt.setText("Prot.:");

        txtLimiteCredito.setBackground(new java.awt.Color(175, 200, 222));
        txtLimiteCredito.setEditable(false);
        txtLimiteCredito.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        txtCupoDisponible.setBackground(new java.awt.Color(175, 200, 222));
        txtCupoDisponible.setEditable(false);
        txtCupoDisponible.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        txtFUD.setBackground(new java.awt.Color(175, 200, 222));
        txtFUD.setEditable(false);
        txtFUD.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        txtNC.setBackground(new java.awt.Color(175, 200, 222));
        txtNC.setEditable(false);
        txtNC.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        txtProt.setBackground(new java.awt.Color(175, 200, 222));
        txtProt.setEditable(false);
        txtProt.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lblClaseRiesgo.setText("Clase de riesgo:");

        lblValorVencido.setText("Valor vencido:");

        txtClaseRiesgo.setBackground(new java.awt.Color(175, 200, 222));
        txtClaseRiesgo.setEditable(false);

        txtValorVencido.setBackground(new java.awt.Color(175, 200, 222));
        txtValorVencido.setEditable(false);

        btnDt1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/cobranzas.png"))); // NOI18N
        btnDt1.setBorder(null);
        btnDt1.setBorderPainted(false);
        btnDt1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDt1ActionPerformed(evt);
            }
        });

        btnDt2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/cobranzas.png"))); // NOI18N
        btnDt2.setBorder(null);
        btnDt2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDt2ActionPerformed(evt);
            }
        });

        btnDt3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/cobranzas.png"))); // NOI18N
        btnDt3.setBorder(null);
        btnDt3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDt3ActionPerformed(evt);
            }
        });

        chkBloqueoCredito.setText("Bloqueo Crédito");
        chkBloqueoCredito.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        chkBloqueoCredito.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        chkBloqueoCredito.setOpaque(false);

        javax.swing.GroupLayout pnlDatosCreditoLayout = new javax.swing.GroupLayout(pnlDatosCredito);
        pnlDatosCredito.setLayout(pnlDatosCreditoLayout);
        pnlDatosCreditoLayout.setHorizontalGroup(
            pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                        .addComponent(lblLimiteCredito, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtLimiteCredito, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE))
                    .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                        .addComponent(lblCupoDisponible, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtCupoDisponible, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE))
                    .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                        .addComponent(lblFUD, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtFUD, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE))
                    .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                        .addComponent(lblNC, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtNC, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE))
                    .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                        .addComponent(lblProt, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProt, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)))
                .addGap(18, 18, 18)
                .addGroup(pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                        .addComponent(lblClaseRiesgo, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtClaseRiesgo, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE))
                    .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                        .addComponent(lblValorVencido, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtValorVencido, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE))
                    .addGroup(pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnDt3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnDt2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnDt1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(chkBloqueoCredito, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlDatosCreditoLayout.setVerticalGroup(
            pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosCreditoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtLimiteCredito, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblClaseRiesgo)
                    .addComponent(txtClaseRiesgo, javax.swing.GroupLayout.PREFERRED_SIZE, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblLimiteCredito, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCupoDisponible)
                    .addComponent(txtCupoDisponible, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblValorVencido)
                    .addComponent(txtValorVencido, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(chkBloqueoCredito))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFUD)
                    .addComponent(txtFUD, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnDt1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNC)
                    .addComponent(txtNC, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnDt2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDatosCreditoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblProt)
                    .addComponent(txtProt, javax.swing.GroupLayout.PREFERRED_SIZE, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnDt3))
                .addContainerGap())
        );

        pnlDatosCreditoLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {txtClaseRiesgo, txtCupoDisponible, txtFUD, txtLimiteCredito, txtNC, txtProt, txtValorVencido});

        jPanel2.add(pnlDatosCredito, java.awt.BorderLayout.CENTER);

        pnlInformativo.setLayout(new java.awt.BorderLayout(5, 5));

        pnlContenedorValoresPorVencer.setPreferredSize(new java.awt.Dimension(240, 284));
        pnlContenedorValoresPorVencer.setLayout(new java.awt.BorderLayout());

        lblTituloValoresPorVencer.setBackground(new java.awt.Color(175, 200, 222));
        lblTituloValoresPorVencer.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblTituloValoresPorVencer.setText("Valores por Vencer");
        lblTituloValoresPorVencer.setBorder(javax.swing.BorderFactory.createEmptyBorder(3, 3, 3, 1));
        lblTituloValoresPorVencer.setOpaque(true);
        pnlContenedorValoresPorVencer.add(lblTituloValoresPorVencer, java.awt.BorderLayout.PAGE_START);

        pnlValoresPorVencer.setBackground(new java.awt.Color(255, 255, 255));

        pnlEtiquetasMeses.setOpaque(false);
        pnlEtiquetasMeses.setLayout(new java.awt.GridLayout(6, 1, 4, 4));

        lblMes1.setText("OCT-12");
        pnlEtiquetasMeses.add(lblMes1);

        lblMes2.setText("NOV-12");
        pnlEtiquetasMeses.add(lblMes2);

        lblMes3.setText("DIC-12");
        pnlEtiquetasMeses.add(lblMes3);

        lblMes4.setText("ENE-13");
        pnlEtiquetasMeses.add(lblMes4);

        lblMes5.setText("FEB-13");
        pnlEtiquetasMeses.add(lblMes5);

        lblMes6.setText(">");
        pnlEtiquetasMeses.add(lblMes6);

        pnlCajasTextoMeses.setOpaque(false);
        pnlCajasTextoMeses.setLayout(new java.awt.GridLayout(6, 1, 4, 4));

        txtMes1.setBackground(new java.awt.Color(175, 200, 222));
        txtMes1.setEditable(false);
        txtMes1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        pnlCajasTextoMeses.add(txtMes1);

        txtMes2.setBackground(new java.awt.Color(175, 200, 222));
        txtMes2.setEditable(false);
        txtMes2.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        pnlCajasTextoMeses.add(txtMes2);

        txtMes3.setBackground(new java.awt.Color(175, 200, 222));
        txtMes3.setEditable(false);
        txtMes3.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        pnlCajasTextoMeses.add(txtMes3);

        txtMes4.setBackground(new java.awt.Color(175, 200, 222));
        txtMes4.setEditable(false);
        txtMes4.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        pnlCajasTextoMeses.add(txtMes4);

        txtMes5.setBackground(new java.awt.Color(175, 200, 222));
        txtMes5.setEditable(false);
        txtMes5.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        pnlCajasTextoMeses.add(txtMes5);

        txtMes6.setBackground(new java.awt.Color(175, 200, 222));
        txtMes6.setEditable(false);
        txtMes6.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        pnlCajasTextoMeses.add(txtMes6);

        javax.swing.GroupLayout pnlValoresPorVencerLayout = new javax.swing.GroupLayout(pnlValoresPorVencer);
        pnlValoresPorVencer.setLayout(pnlValoresPorVencerLayout);
        pnlValoresPorVencerLayout.setHorizontalGroup(
            pnlValoresPorVencerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValoresPorVencerLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlEtiquetasMeses, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlCajasTextoMeses, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(37, Short.MAX_VALUE))
        );
        pnlValoresPorVencerLayout.setVerticalGroup(
            pnlValoresPorVencerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValoresPorVencerLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValoresPorVencerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(pnlCajasTextoMeses, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                    .addComponent(pnlEtiquetasMeses, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE))
                .addContainerGap())
        );

        pnlContenedorValoresPorVencer.add(pnlValoresPorVencer, java.awt.BorderLayout.CENTER);

        pnlInformativo.add(pnlContenedorValoresPorVencer, java.awt.BorderLayout.LINE_END);

        pnlContenedorTablas.setLayout(new java.awt.GridLayout(2, 1, 5, 5));

        pnlDiasDemora.setLayout(new java.awt.BorderLayout());

        lblTituloDiasDemora.setBackground(new java.awt.Color(175, 200, 222));
        lblTituloDiasDemora.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblTituloDiasDemora.setText("Días de demora tras vencimiento neto");
        lblTituloDiasDemora.setBorder(javax.swing.BorderFactory.createEmptyBorder(3, 3, 3, 1));
        lblTituloDiasDemora.setOpaque(true);
        pnlDiasDemora.add(lblTituloDiasDemora, java.awt.BorderLayout.PAGE_START);

        pnlTablaDiasDemora.setBackground(new java.awt.Color(255, 255, 255));
        pnlTablaDiasDemora.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));
        pnlTablaDiasDemora.setLayout(new java.awt.BorderLayout());

        tblDiasDemora.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        scrDiasDemora.setViewportView(tblDiasDemora);

        pnlTablaDiasDemora.add(scrDiasDemora, java.awt.BorderLayout.CENTER);

        pnlDiasDemora.add(pnlTablaDiasDemora, java.awt.BorderLayout.CENTER);

        pnlContenedorTablas.add(pnlDiasDemora);

        pnlHistorialPagos.setLayout(new java.awt.BorderLayout());

        lblHistorialPagos.setBackground(new java.awt.Color(175, 200, 222));
        lblHistorialPagos.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblHistorialPagos.setText("Historial de Pagos");
        lblHistorialPagos.setBorder(javax.swing.BorderFactory.createEmptyBorder(3, 3, 3, 1));
        lblHistorialPagos.setOpaque(true);
        pnlHistorialPagos.add(lblHistorialPagos, java.awt.BorderLayout.PAGE_START);

        pnlTablaHistorialPagos.setBackground(new java.awt.Color(255, 255, 255));
        pnlTablaHistorialPagos.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));
        pnlTablaHistorialPagos.setLayout(new java.awt.BorderLayout());

        tblHistorialPagos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        scrHistorialPagos.setViewportView(tblHistorialPagos);

        pnlTablaHistorialPagos.add(scrHistorialPagos, java.awt.BorderLayout.CENTER);

        pnlHistorialPagos.add(pnlTablaHistorialPagos, java.awt.BorderLayout.CENTER);

        pnlContenedorTablas.add(pnlHistorialPagos);

        pnlInformativo.add(pnlContenedorTablas, java.awt.BorderLayout.CENTER);

        javax.swing.GroupLayout pnlContenedorLayout = new javax.swing.GroupLayout(pnlContenedor);
        pnlContenedor.setLayout(pnlContenedorLayout);
        pnlContenedorLayout.setHorizontalGroup(
            pnlContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 735, Short.MAX_VALUE)
            .addComponent(pnlInformativo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 735, Short.MAX_VALUE)
        );
        pnlContenedorLayout.setVerticalGroup(
            pnlContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlContenedorLayout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlInformativo, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE))
        );

        pnlCentral.add(pnlContenedor, java.awt.BorderLayout.CENTER);

        getContentPane().add(pnlCentral, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void btnCobranzaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCobranzaActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnCobranzaActionPerformed

private void btnAnticipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAnticipoActionPerformed
// TODO add your handling code here:
    ((Main) contenedor).registroAnticipo();
}//GEN-LAST:event_btnAnticipoActionPerformed

private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnCancelarActionPerformed

private void btnDt1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDt1ActionPerformed
// TODO add your handling code here:
    DialogoDetalleCarteraPendienteDevolucion dlg = new DialogoDetalleCarteraPendienteDevolucion(contenedor, true);
    dlg.setVisible(true);
}//GEN-LAST:event_btnDt1ActionPerformed

private void btnDt2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDt2ActionPerformed
// TODO add your handling code here:
    DialogoDetalleCartera dlg = new DialogoDetalleCartera(contenedor, true, "Notas de crédito");
    dlg.setVisible(true);
}//GEN-LAST:event_btnDt2ActionPerformed

private void btnDt3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDt3ActionPerformed
// TODO add your handling code here:
    DialogoDetalleCartera dlg = new DialogoDetalleCartera(contenedor, true, "Protestos");
    dlg.setVisible(true);
}//GEN-LAST:event_btnDt3ActionPerformed

private void btnPISelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPISelActionPerformed
    DialogoPartidasIndividuales dlgPartidasIndividuales = new DialogoPartidasIndividuales(contenedor, true);
    dlgPartidasIndividuales.setVisible(true);
}//GEN-LAST:event_btnPISelActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToolBar barraHerramientas;
    private javax.swing.JButton btnAnticipo;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnCobranza;
    private javax.swing.JButton btnDt1;
    private javax.swing.JButton btnDt2;
    private javax.swing.JButton btnDt3;
    private javax.swing.JButton btnPISel;
    private javax.swing.JCheckBox chkBloqueoCredito;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JToolBar.Separator jSeparator2;
    private javax.swing.JToolBar.Separator jSeparator3;
    private javax.swing.JToolBar.Separator jSeparator4;
    private javax.swing.JLabel lblClaseRiesgo;
    private javax.swing.JLabel lblCupoDisponible;
    private javax.swing.JLabel lblFUD;
    private javax.swing.JLabel lblHistorialPagos;
    private javax.swing.JLabel lblLimiteCredito;
    private javax.swing.JLabel lblMes1;
    private javax.swing.JLabel lblMes2;
    private javax.swing.JLabel lblMes3;
    private javax.swing.JLabel lblMes4;
    private javax.swing.JLabel lblMes5;
    private javax.swing.JLabel lblMes6;
    private javax.swing.JLabel lblNC;
    private javax.swing.JLabel lblProt;
    private javax.swing.JLabel lblTitulo;
    private javax.swing.JLabel lblTituloDatosCredito;
    private javax.swing.JLabel lblTituloDiasDemora;
    private javax.swing.JLabel lblTituloValoresPorVencer;
    private javax.swing.JLabel lblValorVencido;
    private javax.swing.JPanel pnlCajasTextoMeses;
    private javax.swing.JPanel pnlCentral;
    private javax.swing.JPanel pnlContenedor;
    private javax.swing.JPanel pnlContenedorTablas;
    private javax.swing.JPanel pnlContenedorValoresPorVencer;
    private javax.swing.JPanel pnlDatosCredito;
    private javax.swing.JPanel pnlDiasDemora;
    private javax.swing.JPanel pnlEtiquetasMeses;
    private javax.swing.JPanel pnlHistorialPagos;
    private javax.swing.JPanel pnlInformativo;
    private javax.swing.JPanel pnlTablaDiasDemora;
    private javax.swing.JPanel pnlTablaHistorialPagos;
    private javax.swing.JPanel pnlValoresPorVencer;
    private javax.swing.JScrollPane scrDiasDemora;
    private javax.swing.JScrollPane scrHistorialPagos;
    private javax.swing.JTable tblDiasDemora;
    private javax.swing.JTable tblHistorialPagos;
    private javax.swing.JTextField txtClaseRiesgo;
    private javax.swing.JTextField txtCupoDisponible;
    private javax.swing.JTextField txtFUD;
    private javax.swing.JTextField txtLimiteCredito;
    private javax.swing.JTextField txtMes1;
    private javax.swing.JTextField txtMes2;
    private javax.swing.JTextField txtMes3;
    private javax.swing.JTextField txtMes4;
    private javax.swing.JTextField txtMes5;
    private javax.swing.JTextField txtMes6;
    private javax.swing.JTextField txtNC;
    private javax.swing.JTextField txtProt;
    private javax.swing.JTextField txtValorVencido;
    // End of variables declaration//GEN-END:variables
}
